package com.mall.service;

import com.mall.entity.Product;

import java.util.List;

public interface ProductService {

    Product addProduct(Product product);

    Product updateProduct(Product product);

    void deleteProduct(Long productId);

    Product getProductById(Long productId);

    List<Product> getAllProducts();

    List<Product> getProductsBySeller(Long sellerId);

    List<Product> getProductsByCategory(Long categoryId);

    List<Product> searchProducts(String keyword);
}    